package com.zlll.winner.mapper.mall;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlll.winner.business.model.mall.MallSeckillManage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zlll.winner.business.vo.mall.MallGoodsDetailsVo;
import com.zlll.winner.business.vo.mall.MallSeckillVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品秒杀 管理 Mapper 接口
 * </p>
 *
 * @author qsx
 * @since 2019-10-08
 */
public interface MallSeckillManageMapper extends BaseMapper<MallSeckillManage> {
    List<MallGoodsDetailsVo> getMallGoodsDetailsList();

    List<MallSeckillVo> getMallSeckillByCondition(@Param("time")Long time,@Param("goodsName") String goodsName, IPage<MallSeckillVo> page);

    List<MallSeckillManage>  getMallSeckillManageByTime(@Param("startTime")Long startTime,@Param("endTime")Long endTime);

    List<MallSeckillVo> getMallSeckillBySeckillId(@Param("seckillId")Long seckillId);
}
